<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/warehouse/wareReport/receiveDetailsList" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>订单编号： <input size="30" placeholder="请输入订单编号" name="onum" type="text" value="${requestScope.dwzPageBean.countResultMap.onum}" />
					</td>
					<td>业务类型： <select name="type">
							<option value="">请选择</option>
							<option value="采购入库" ${requestScope.dwzPageBean.countResultMap.type == '采购入库'? 'selected':''}>采购入库</option>
							<option value="其他入库" ${requestScope.dwzPageBean.countResultMap.type == '其他入库'? 'selected':''}>其他入库</option>
							<option value="盈亏入库" ${requestScope.dwzPageBean.countResultMap.type == '盈亏入库'? 'selected':''}>盈亏入库</option>
							<option value="销售出库" ${requestScope.dwzPageBean.countResultMap.type == '销售出库'? 'selected':''}>销售出库</option>
							<option value="其他出库" ${requestScope.dwzPageBean.countResultMap.type == '其他出库'? 'selected':''}>其他出库</option>
							<option value="调拨单" ${requestScope.dwzPageBean.countResultMap.type == '调拨单'? 'selected':''}>调拨单</option>
					</select>
					</td>
					<td>调拨入库： <input size="30" placeholder="请输入仓库名称" name="inwhname" type="text" value="${requestScope.dwzPageBean.countResultMap.inwhname}" />
					</td>
					<td>调拨出库： <input size="30" placeholder="请输入仓库名称" name="outwhname" type="text" value="${requestScope.dwzPageBean.countResultMap.outwhname}" />
					</td>
					<%-- <td>商品名称： <input size="30" placeholder="请输入商品名称" name="pnname" type="text" value="${requestScope.dwzPageBean.countResultMap.pnname}" />
					</td> --%>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="/warehouse/wareReport/receiveDetailsExport">
				<li><a href="${pageContext.request.contextPath}/warehouse/wareReport/receiveDetailsExport" target="dwzExport" targetType="navTab" title="是要导出这些记录吗?" class="icon"><span>导出EXCEL</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>

				<th>订单编号</th>
				<th>供应商</th>
				<th>业务类型</th>
				<th>制单时间</th>
				<th>数量</th>
				<th>入库仓库</th>
				<th>入库商品</th>
				<th>入库单价</th>
				<th>出库仓库</th>
				<th>出库商品</th>
				<th>出库单价</th>
				<th>商品规格</th>
				<th>商品单位</th>


			</tr>
		</thead>
		<tbody>

			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr>

						<td>${record.onum}</td>
						<td>${record.supplier}</td>
						<td>${record.type}</td>
						<td>${record.odtm}</td>
						<td>${record.amut}</td>
						<td>${record.inwhname}</td>
						<td>${record.inpnname}</td>
						<td><nf:nfmt num="${record.insprice  }"/></td>
						<td>${record.outwhname}</td>
						<td>${record.outpnname}</td>
						<td><nf:nfmt num="${record.outsprice  }"/></td>
						<td>${record.pack}</td>
						<td>${record.capacity}</td>
					</tr>
				</c:forEach>
			</c:if>

		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/pageBar.jsp"%>
</div>